package com.ningxia.water;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableScheduling
@MapperScan("com.ningxia.water.mapper")
@ComponentScan(basePackages = {
        "com.ningxia.water.components",
        "com.ningxia.water.configuration",
        "com.ningxia.water.controller",
        "com.ningxia.water.entity",
        "com.ningxia.water.exception",
        "com.ningxia.water.mapper",
        "com.ningxia.water.service",
        "com.ningxia.water.vo",
})
@EnableTransactionManagement
public class WaterApplication {

    public static void main(String[] args) {
        SpringApplication.run(WaterApplication.class, args);
    }

}
